home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / abs.z / abs
Encoding:
Text File  |  2002-10-03  |  3.8 KB  |  103 lines

  1. ABS(3I)                                               Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      AABBSS, DDAABBSS, QQAABBSS, IIAABBSS, IIIIAABBSS, JJIIAABBSS, KKIIAABBSS, CCAABBSS, CCQQAABBSS, CCDDAABBSS -
  6.      Computes absolute value
  7.  
  8. SSYYNNOOPPSSIISS
  9.      AABBSS (([AA==]_a))
  10.      DDAABBSS (([AA==]_a))
  11.      QQAABBSS (([AA==]_a))
  12.      IIAABBSS (([AA==]_a))
  13.      IIIIAABBSS (([AA==]_a))
  14.      JJIIAABBSS (([AA==]_a))
  15.      KKIIAABBSS (([AA==]_a))
  16.      CCAABBSS (([AA==]_a))
  17.      CCDDAABBSS (([AA==]_a))
  18.      CCQQAABBSS (([AA==]_a))
  19.  
  20. IIMMPPLLEEMMEENNTTAATTIIOONN
  21.      UNICOS, UNICOS/mk, IRIX systems
  22.  
  23.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  24.  
  25. SSTTAANNDDAARRDDSS
  26.      Fortran
  27.  
  28.      Fortran extensions:  QQAABBSS, IIIIAABBSS, JJIIAABBSS, KKIIAABBSS, CCQQAABBSS, CCDDAABBSS
  29.  
  30. DDEESSCCRRIIPPTTIIOONN
  31.      AABBSS is the generic function name; the others are specifics.  These are
  32.      elemental intrinsic functions.  They accept the following arguments:
  33.  
  34.      _x         Must be a numeric data type (real, complex, or integer) of
  35.                any supported kind type.  See the RETURN VALUES section for
  36.                more information on input data types and return values.
  37.  
  38.      These functions evaluate as follows:  _y = |_x|, except for CCAABBSS and
  39.      CCDDAABBSS, which evaluate the following:
  40.                   2     2 1/2
  41.           _y = |(_x   + _x  )   |
  42.                  _r     _i
  43. NNOOTTEESS
  44.      The AABBSS, IIAABBSS, DDAABBSS, and CCAABBSS intrinsic function names can be passed
  45.      as arguments; the others cannot.
  46.  
  47.      On CRAY T90 systems that support IEEE arithmetic, the following return
  48.      values occur:
  49.  
  50.      AABBSS((_x)):
  51.  
  52.           |_x| = infinity, result is infinity.
  53.  
  54.           _x =  NaN, result is NaN.
  55.  
  56.      CCAABBSS((_x))::
  57.  
  58.           _x or _y = NaN, result is NaN.
  59.  
  60.           |_x| = infinity and _y is not NaN, result is infinity.
  61.  
  62.           |_y| = infinity and _x is not NaN, result is infinity.
  63.  
  64. RREETTUURRNN VVAALLUUEESS
  65.      AABBSS returns the absolute value of its argument.  The data type of the
  66.      result is the same as the data type of _a except that if input argument
  67.      _a is type complex, the result is type real.
  68.  
  69.      DDAABBSS returns the double-precision absolute value of its
  70.      double-precision argument.
  71.  
  72.      QQAABBSS returns the quad-precision absolute value of its quad-precision
  73.      argument.
  74.  
  75.      IIAABBSS returns the integer absolute value of its integer argument.
  76.  
  77.      IIIIAABBSS returns the integer (KIND=2) absolute value of its integer
  78.      (KIND=2) argument.
  79.  
  80.      JJIIAABBSS returns the integer (KIND=4) absolute value of its integer
  81.      (KIND=4) argument.
  82.  
  83.      KKIIAABBSS returns the integer (KIND=8) absolute value of its integer
  84.      (KIND=8) argument.
  85.  
  86.      CCAABBSS returns the absolute value of its single-precision complex
  87.      argument as a single-precision real number.
  88.  
  89.      CCDDAABBSS returns the absolute value of its complex double-precision
  90.      argument as a double-precision real number.
  91.  
  92.      CCQQAABBSS returns the absolute value of its complex quad-precision
  93.      argument as a quad-precision real number.
  94.  
  95.      The data type and kind type for single-precision, double-precision,
  96.      and quad-precision values differ depending on your platform.  For
  97.      platform-specific information, see the TERMINOLOGY section of the
  98.      IINNTTRROO__IINNTTRRIINN(3I) man page.
  99.  
  100. SSEEEE AALLSSOO
  101.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  102.      man page.
  103.